<template>
  <div class="search" :class="ser">
    <input type="text" placeholder="搜索帖子">
    <i class="iconfont search-icon1">&#xe600;</i>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.search {
  position: relative;
  display: flex;
  width: 92%;
  margin: auto;
  height: 30px;
  background-color: rgb(245, 244, 242);
  align-items: center;
  justify-content: center;

  input {
    text-align: center;
    border: 0;
    height: 30px;
    background-color: rgb(245, 244, 242);
    margin-left: 20px;
    outline: none;

    &::placeholder {
      font-size: 16px
    }
  }

  .search-icon1 {
    position: absolute;
    left: 0;
    margin-left: 130px;
    font-size: 18px;
  }
}
</style>